package com.ruoyi.hcrf.controller.storage;



import com.ruoyi.hcrf.domain.service.storage.StorageTypeService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 库位类型
 * 
 * @author wanglf
 */
@RestController
@RequestMapping("/storage/type")
@Api(tags = "库位类型接口")
public class StorageTypeController
{
    @Autowired
    private StorageTypeService storageTypeService;

    /**
     * 获取库位类型列表（分页）
     */
//    @ApiOperation(value = "获取库位类型列表（分页）")
//    @RequestMapping(value = "/page" , method = RequestMethod.POST)
//    public CommonResult page(@RequestBody StorageTypePageInBo pageInBo)
//    {
//        Page<StorageType> result = storageTypeService.selectPage(pageInBo);
//        return CommonResult.success(result);
//    }
//
//    /**
//     * 获取库位类型列表
//     */
//    @ApiOperation(value = "获取库位类型列表")
//    @RequestMapping(value = "/list" , method = RequestMethod.GET)
//    public CommonResult list()
//    {
//        List<StorageType> result = storageTypeService.list();
//        return CommonResult.success(result);
//    }
//
//    /**
//     * 新增库位类型
//     */
//    @ApiOperation(value = "新增库位类型")
//    @RequestMapping(value = "/save" , method = RequestMethod.POST)
//    public CommonResult save(@RequestBody StorageTypeCreateInBo createInBo)
//    {
//        Boolean result = storageTypeService.insertStorageType(createInBo);
//        return CommonResult.success(result);
//    }
//
//    /**
//     * 修改库位类型
//     */
//    @ApiOperation(value = "修改库位类型")
//    @RequestMapping(value = "/update" , method = RequestMethod.POST)
//    public CommonResult update(@RequestBody StorageTypeCreateInBo createInBo)
//    {
//        Boolean result = storageTypeService.updateStorageType(createInBo);
//        return CommonResult.success(result);
//    }
//
//    /**
//     * 删除库位（逻辑删除）
//     */
//    @ApiOperation(value = "删除库位（逻辑删除）")
//    @RequestMapping(value = "/delete/{typeId}" , method = RequestMethod.GET)
//    public CommonResult del(@PathVariable(value = "typeId", required = false) Long typeId)
//    {
//        boolean delFlag = storageTypeService.removeById(typeId);
//        return CommonResult.success(delFlag);
//    }


}
